﻿#ifndef B3PANELTESTLAMP_H
#define B3PANELTESTLAMP_H

#include "LampControl.h"
#include "MCLampControl.h"

class MCLampControl;
class TopIlluminator : public LampControl
{
    Q_OBJECT
public:
    TopIlluminator(QObject * parent = nullptr) : LampControl(parent){}
    void loadSettings(QSettings &settings) Q_DECL_OVERRIDE;
    int value() Q_DECL_OVERRIDE;
public slots:

    // 这里的 value 限制到 0-255
    void setValue(int value) Q_DECL_OVERRIDE;
    void turnOnOff(bool on) Q_DECL_OVERRIDE;
private:
    MCLampControl * m_pControl;
    int m_channelIndex;
    QString m_IP;
    long m_port;
};


class BottomIlluminator : public LampControl
{
    Q_OBJECT
public:
    BottomIlluminator(QObject * parent = nullptr) : LampControl(parent){}
    void loadSettings(QSettings &settings) Q_DECL_OVERRIDE;
    int value() Q_DECL_OVERRIDE;
public slots:
    // 这里的 value 限制到 0-255
    void setValue(int value) Q_DECL_OVERRIDE;
    void turnOnOff(bool on) Q_DECL_OVERRIDE;
private:
    MCLampControl * m_pControl;
    QString m_comPort;
    int m_channelIndex;
};








#endif // B3PANELTESTLAMP_H
